﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;

namespace AgentyWeb.Models
{
    public class Session
    {
        public Session()
        {
            Locations = new List<LocationReport>();
        }
        [Key]
        public Guid SessionId { get; set; }
        public string Nickname { get; set; }
        public string Color { get; set; }
        public virtual List<LocationReport> Locations { get; set; }

        public Session PureClone()
        {
            return new Session() { SessionId = this.SessionId, Color = this.Color, Locations = this.Locations, Nickname = this.Nickname};
        }
    }
}